#!/bin/bash

configure_wine() {
    if [ "~/.wine/drive_c/Program Files/PLT/mzc.exe" ]
    then
	echo "[OK]"
    else
	echo " Not found."
	echo "Configuration failed. You need to install PLT Scheme into C:\Program Files\PLT."
	exit 1
    fi
}

echo "Checking for mzc..."
if [ $1="--wine" ]
then
    configure_wine
else
if [ /usr/bin/mzc ]
then
	echo "[OK]"
	exit 0
else
	echo " Not found."
	echo "Configuration failed. You need to install PLT Scheme."
	exit 1
fi
fi